package com.data.structure.day01;

public class Test02 {
	public static void main(String[] args) {
		String input = "shbhs";
		StringBuffer buffer = new StringBuffer(input);
		StringBuffer stringBuffer = buffer.reverse();
		System.out.println(stringBuffer); //fasfdsa
		if(input.equals(stringBuffer.toString())){
			System.out.println("回文数");
		}
	}
}
